package com.zjlp.seproject.service.impl;

import com.zjlp.seproject.mapper.CourseMapper;
import com.zjlp.seproject.pojo.Comment;
import com.zjlp.seproject.pojo.Course;
import com.zjlp.seproject.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    private CourseMapper courseMapper;

    public List<Course> selectAll(){
        return courseMapper.selectAll();
    }

    public int deleteByPrimaryKey(Integer id){
        return courseMapper.deleteByPrimaryKey(id);
    }

    public int insert(Course record){
        return courseMapper.insert(record);
    }

    public Course selectByPrimaryKey(Integer id){
        return courseMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKey(Course record){
        return courseMapper.updateByPrimaryKey(record);
    }
}
